package com.yaojiaxun.logisticsPlatformSystem.config;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: yjx_j
 * @Date: 2018/10/24 12:05
 * @Description:
 */
@Configuration
@MapperScan("com.yaojiaxun.logisticsPlatformSystem.mapper.*")
public class MybatisplusConfig {
    //注入分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }
}
